<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>用户注册</title>
	<style type="text/css">
		ul li{
			list-style:none;
		}
		a:hover {
            color: red;
        }
	</style>
</head>
<body>
	<p>用户注册</p>
	<form id="user_register_form" method="post">
		<ul>
			<li>用户名：<input type="text" name="name" /></li>
			<li>密&nbsp;&nbsp;&nbsp;&nbsp;码：<input type="password" name="password" /></li>
		</ul>
		<div><a id="save" href="javascript:;">提交</a></div>
	</form>
	<br><br><br>
	<input type="button" value="转到登陆界面" onclick="jstiaozhuan()"> 
	<script type="text/javascript" src="/static/js/jquery.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$('#save').on('click',function(){
				$.post('/user_register',$('#user_register_form').serialize(),function(data){
					alert(data);
					console.log(data);
				});
			});
		});
		function jstiaozhuan() 
	    { 
	        window.location.href='http://localhost:8089/user_login.html'; 
	    }
	</script>
</body>
</html>